<form id="pagerForm" action="jms/stock/lookupMaterial">
	<input type="hidden" name="pageNum" value="${(pager.pageNumber)!}" />
	<input type="hidden" name="numPerPage" value="${(pager.pageSize)!}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" method="post" action="jms/stock/lookupMaterial" onsubmit="return dwzSearch(this, 'dialog');">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>物料名:</label>
					<input class="textInput" name="name" value="${(name)!}" type="text">
				</li>
				<li>
					<label>供应商:</label>
					<input class="textInput" name="supplier" value="${(supplier)!}" type="text">
				</li>

			</ul>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">

	<table class="table" layoutH="118" targetType="dialog" width="100%">
		<thead>
			<tr>
				<th orderfield="name">物料名</th>
				<th orderfield="unit">计量单位</th>
				<th orderfield="model">规格型号</th>
				<th orderfield="supplier">供应商</th>
				<th width="80">选择</th>
			</tr>
		</thead>
		<tbody>
		<#list pager.list as m>
			<tr>
				<td>${(m.name)!}</td>
				<td>${(m.unit)!}</td>
				<td>${(m.model)!}</td>
				<td>${(m.supplier)!}</td>
				<td>
					<a class="btnSelect" href="javascript:$.bringBack({mid:'${(m.id)!}', name:'${(m.name)!}',unit:'${(m.unit)!}', model:'${(m.model)!}',supplier:'${(m.supplier)!}'})" title="查找带回">选择</a>
				</td>
			</tr>
		</#list>
		</tbody>
	</table>


	<div class="panelBar">
		<div class="pages">
			<span>共<font style="color:red;font-weight:bold;">${pager.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${pager.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="${pager.totalRow!}" numPerPage="${pager.pageSize!}" pageNumShown="10" currentPage="${pager.pageNumber!}"></div>
	</div>

</div>